package chapter8.HomeWork;

public class Teacher extends People {
    private double work_age;

    public Teacher(String name, String sex, int age, double work_age) {
        super(name, sex, age);
        this.work_age = work_age;
    }

    @Override
    public void Play() {
        System.out.println(getName()+"爱玩象棋");
    }
    public void teach(){
        System.out.println("我承诺，我会认真教学");
    }
}
